<%@ page import="ingresso.Usuario" %>



<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'email', 'error')} required">
	<label for="email">
		<g:message code="usuario.email.label" default="Email" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="email" name="email" required="" value="${usuarioInstance?.email}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'senha', 'error')} required">
	<label for="senha">
		<g:message code="usuario.senha.label" default="Senha" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="password" name="senha" maxlength="15" required="" value="${usuarioInstance?.senha}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'nome', 'error')} required">
	<label for="nome">
		<g:message code="usuario.nome.label" default="Nome" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="nome" maxlength="32" required="" value="${usuarioInstance?.nome}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'cpf', 'error')} required">
	<label for="cpf">
		<g:message code="usuario.cpf.label" default="Cpf" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="cpf" maxlength="14" required="" value="${usuarioInstance?.cpf}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'dataNascimento', 'error')} required">
	<label for="dataNascimento">
		<g:message code="usuario.dataNascimento.label" default="Data Nascimento" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dataNascimento" precision="day"  value="${usuarioInstance?.dataNascimento}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'endereco', 'error')} required">
	<label for="endereco">
		<g:message code="usuario.endereco.label" default="Endereco" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="endereco" maxlength="32" required="" value="${usuarioInstance?.endereco}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'fone', 'error')} required">
	<label for="fone">
		<g:message code="usuario.fone.label" default="Fone" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="fone" required="" value="${usuarioInstance?.fone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: usuarioInstance, field: 'tipoUsuario', 'error')} ">
	<label for="tipoUsuario">
		<g:message code="usuario.tipoUsuario.label" default="Tipo Usuario" />
		
	</label>
	<g:select name="tipoUsuario" from="${usuarioInstance.constraints.tipoUsuario.inList}" value="${usuarioInstance?.tipoUsuario}" valueMessagePrefix="usuario.tipoUsuario" noSelection="['': '']"/>
</div>

